﻿using System;
using System.Windows.Forms;

namespace GPExplorer {
    /// <summary>
    /// Form used to get the desired library name
    /// </summary>
    public partial class FrmName : Form {

        /// <summary>
        /// Gets or sets the name of the library.
        /// </summary>
        /// <value>
        /// The name of the library.
        /// </value>
        public string LibraryName { get; set; }
        /// <summary>
        /// Initializes a new instance of the <see cref="FrmName"/> class.
        /// </summary>
        public FrmName() {
            InitializeComponent();
        }

        /// <summary>
        /// Handles the Click event of the CmdOk control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void CmdOk_Click(object sender, EventArgs e){
            LibraryName = TxtLibraryName.Text;
            Close();
        }
    }
}
